<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生信息管理系统</title>
    <link rel="stylesheet" href="./css/students.css">
</head>

<body>
    <div class="nav">
        <h1>学生信息管理系统</h1>
        <div id="paging">
            <input type="button" value="添加学生" id="addBtn" />
            <input type="button" value="返回首页" />
            <input type="button" value="上一页" />
            <span>第 1 页</span>
            <input type="button" value="下一页" />
        </div>
        <table>
            <tr>
                <th>学号</th>
                <th>姓名</th>
                <th>年龄</th>
                <th>班级</th>
                <th>入学时间</th>
                <th>操作</th>
            </tr>


            {% for student in students %}
            <tr>
                <td>{{student.studentId}}</td>
                <td>{{student.studentName}}</td>
                <td>{{student.studentAge}}</td>
                <td>{{student.classRoom}}</td>
                <td>{{student.enrollmentTime}}</td>
                <td>
                    <input type="button" value="修改" data-studentId='{{student.studentId}}' />
                    <input type="button" value="删除" data-studentId='{{student.studentId}}' />
                </td>
            </tr>
            {% endfor %}
        </table>
    </div>

    <!-- 导入js 文件 -->
    <script src="./js/index.js"></script>
</body>

</html>